package com.woniuxy.secondhand.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 二手订单
 * </p>
 *
 * @author chaohuijiang
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("SEC_GOODSORDER")
@ApiModel(value="SecGoodsorder对象", description="二手订单")
@KeySequence("")
public class SecGoodsorder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单编码")
    @TableId(value = "ORDERNUMBER",type = IdType.INPUT)
    private String ordernumber;

    @ApiModelProperty(value = "总价")
    @TableField("TOTALPRICE")
    private Integer totalprice;

    @ApiModelProperty(value = "邮寄地址")
    @TableField("POST_ID")
    private Integer postId;

    @ApiModelProperty(value = "0表示未支付1表示已支付2表示未发货3表示已发货4表示已退货")
    @TableField("STATE")
    private Integer state;

    @ApiModelProperty(value = "软删除")
    @TableField("FLAG")
    private Integer flag;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATETIME")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createtime;


}
